<?php
/*
 * @Author: your name
 * @Date: 2021-11-02 19:06:50
 * @LastEditTime: 2021-12-07 16:54:20
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /nlog/app/Models/admin_model/Admin.php
 */

namespace App\Models\find_shop;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class FindShopUser extends Model
{
    use HasFactory;
    static string $tableName = 'find_shop_user';

    public static function   insertUpdated($formDataStr){
       return   DB::update("INSERT INTO ".self::$tableName." ( ".$formDataStr['keyStr'].",update_time,create_time) VALUES ( ".$formDataStr['valStr'].",NOW(),NOW() ) ON DUPLICATE KEY UPDATE ".$formDataStr['updateStr'].",update_time = now() ");
    }

   
}
